
package net.lab0.electron.map;


import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.InputEvent;
import java.awt.geom.Point2D;


@SuppressWarnings("serial")
public class MapPoint
extends Point2D.Double
implements MapElement
{
    public MapPoint()
    {
        super();
    }
    
    public MapPoint(double x, double y)
    {
        super(x, y);
    }
    
    @Override
    public void setX(double x)
    {
        this.x = x;
    }
    
    @Override
    public void setY(double y)
    {
        this.y = y;
    }
    
    @Override
    public void draw(Graphics2D g, int xScreen, int yScreen)
    {
        g.setColor(Color.BLACK);
        g.drawLine(xScreen, yScreen - 1, xScreen, yScreen - 1);
    }
    
    @Override
    public void triggered(InputEvent event)
    {
        System.out.println("" + this + " triggered");
    }

    @Override
    public float getSelectionRadius()
    {
        return 1;
    }
    
//    @Override
//    public boolean atScreen(int x, int y)
//    {
//        if (this.x == x && this.y == y)
//        {
//            return true;
//        }
//        return false;
//    }
    
}
